<template>
  <div>
    <span>菜单二功能组件</span>
    <div>
      <span>菜单名称:{{menuName}}</span>
    </div>
    <div>
      <span>菜单值: {{menuValue}}</span>
    </div>
  </div>
</template>
<script>
export default {
  name: "menu1",
  data() {
    return {
      menuName,
      menuValue
    };
  },
  created() {
    this.init();
  },
  mounted() {},
  methods: {
    init() {
      this.menuName = this.$store.state.menuName;
      this.menuValue = this.$store.state.menuValue;
    }
  }
};
</script>
<style scoped>
</style>
